
package com.yuan.prefence;

/**
 * 存储一些与网址有关的常量 为了测试方便 全部使用get传递参数 等完成后使用post传递重要参数信息
 * 
 * @author YUAN
 */
public interface UrlConstants {
    // 配置文件路径 必须写死
    public static final String CONFIGURL = "http://192.168.1.101:8080/GraduateServer/servlet/getconfigservlet";

    // 图片存贮基路径
    public static final String LOCALIMAGE_PATH_BASE = "http://192.168.1.101:8080/GraduateServer/Image/%s";

    // Servlet基本路径
    public static final String LOCALSERVLET_PATH_BASE = "http://192.168.1.101:8080/GraduateServer/servlet/";
    public static final String LOGINURL = LOCALSERVLET_PATH_BASE
            + "loginservlet?username=%s&password=%s";
    public static final String GETUSERINFOURL = LOCALSERVLET_PATH_BASE + "getuserinfo?phone=%s";
    public static final String ASKLEAVEURL = LOCALSERVLET_PATH_BASE
            + "askleaveservlet?userid=%s&leavetype=%s&starttime=%s&endtime=%s&reason=%s";
    public static final String GETALLLEAVEURL = LOCALSERVLET_PATH_BASE
            + "getallleaveservlet?userid=%s";
    public static final String CHECKINURL = LOCALSERVLET_PATH_BASE
            + "checkinservlet?userid=%s&lat=%s&lng=%s&location=%s&remark=%s&mark=%s&checkintime=%s";
    public static final String CHECKOUTURL = LOCALSERVLET_PATH_BASE
            + "checkoutservlet?userid=%s&lat=%s&lng=%s&location=%s&remark=%s&mark=%s&checkintime=%s&checkouttime=%s";
    public static final String ISCHECKINEDDAY = LOCALSERVLET_PATH_BASE
            + "ischeckedintoday?userid=%s";
    public static final String ISCHECKOUTEDDAY = LOCALSERVLET_PATH_BASE
            + "ischeckedouttoday?userid=%s";
    public static final String UPDATELOCATION = LOCALSERVLET_PATH_BASE
            + "updatelocation?userid=%s&lat=%s&lng=%s&time=%s";
    public static final String CANCELLEAVEURL = LOCALSERVLET_PATH_BASE
            + "cancelleaveservlet?leaveid=%s";
    public static final String SEECHECK = LOCALSERVLET_PATH_BASE + "checkservlet?id=%s&data=%s";
    public static final String SEECHECKMONTH = LOCALSERVLET_PATH_BASE
            + "getmonthcheckservlet?id=%s&data=%s";
    public static final String SETPHOTO = LOCALSERVLET_PATH_BASE
            + "getphotoservlet?id=%s";
    public static final String CHANGEPWD = LOCALSERVLET_PATH_BASE
            + "changepwdservlet?username=%s&pwd=%s&newpwd=%s";
    public static final String GETTRAIL = LOCALSERVLET_PATH_BASE
            + "gettrailservlet?id=%s&data=%s";
}
